package edu.cqie.dao;

import edu.cqie.entity.User;
import org.apache.ibatis.session.SqlSession;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * UserDao1Impl
 *
 * @description:
 * @Author XiaoZhou
 * @Date 2023/10/18 15:28
 */
public class UserDao1Impl2 extends SqlSessionDaoSupport implements UserDao1{
    //我们所有操作都使用sqlSession执行，在原来，现在都是用sqlSessionTemplate

    @Override
    public List<User> selectUser() {
        return getSqlSession().getMapper(UserDao1.class).selectUser();
    }

    @Override
    public User queryById(Integer id) {
        return null;
    }

    @Override
    public List<User> queryAllByLimit(User user, Pageable pageable) {
        return null;
    }

    @Override
    public long count(User user) {
        return 0;
    }

    @Override
    public int insert(User user) {
        return 0;
    }

    @Override
    public int insertBatch(List<User> entities) {
        return 0;
    }

    @Override
    public int insertOrUpdateBatch(List<User> entities) {
        return 0;
    }

    @Override
    public int update(User user) {
        return 0;
    }

    @Override
    public int deleteById(Integer id) {
        return 0;
    }
}
